import VueRouter from 'vue-router';
import home from './components/tabbar/HomeContainer.vue';
import member from './components/tabbar/MemberContainer.vue';
import shopcar from './components/tabbar/ShopcarContainer.vue';
import search from './components/tabbar/SearchContainer.vue';
var router = new VueRouter({
	routes: [{
			path: '/',
			redirect: '/home'
		},
		{
			path: '/home',
			component: home
		},
		{
			path: '/member',
			component: member
		},
		{
			path: '/shopcar',
			component: shopcar
		},
		{
			path: '/search',
			component: search
		}
	],
	/* 1.路由配置对象的linkActiveClass属性：不配置该属性，选中路由的类样式名称默认为router-link-active。但是一旦在路由配置对象中，
	 设置了linkActiveClass属性值，该值就成了选中路由的类样式名称，原来的router-link-active就已经不复存在了
	 2.由于mui文档中，第一个选中的图标，选中类样式名称为mui-class,所以linkActiveClass的值就设为mui-active*/
	linkActiveClass: 'mui-active'
});
// 把路由对象暴露出去
export default router;
